<template>
    <work v-if="dashboard === 1" @on-mounted="onMounted"></work>
    <general v-if="dashboard === 2" @on-mounted="onMounted"></general>
    <!-- <el-empty style="margin-top:200px;" description=""></el-empty> -->
</template>

<script>
import { defineAsyncComponent } from 'vue';
const work = defineAsyncComponent(() => import('./work'));
import general from './general/index.vue';
export default {
    name: "dashboard",
    components: {
        work,
        general
    },
    data() {
        return {
            dashboard: 2,
            pageLoading: true,
        }
    },
    created() {

    },
    mounted() {

    },
    methods: {
        onMounted() {
            this.pageLoading = false
        }
    }
}
</script>

